@import '@/styles/variables.scss';

.scroll-content {
  flex: 1;
  max-height: 100%;
  :deep(.uni-scroll-view-content) {
    display: flex;
    flex-direction: column;
  }
  .recipe-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 20rpx;
    .recipe-content,
    .recipe-step {
      display: flex;
      flex-direction: column;
      flex: 1;
    }
    .empty-list {
      flex: 1;
      display: flex;
      justify-content: center;
      align-items: center;
      font-size: 26rpx;
      font-weight: 400;
      color: var(--color-999);
    }
  }
}

.recipe-content {
  margin: 20rpx 20rpx 0;
  background-color: var(--bg-color);
  box-shadow: 0rpx 0rpx 20rpx 0rpx rgba(6, 29, 23, 0.03);
  border-radius: 18rpx;
  &:not(:has(~ .recipe-content)) {
    //
  }
}

.recipe-concise {
  display: flex;
  align-items: center;
  padding: 24rpx 20rpx 24rpx 16rpx;
  .rc-left {
    .recipe-img {
      display: block;
      width: 180rpx;
      height: 180rpx;
      background-color: var(--body-theme);
      border-radius: 12rpx;
    }
  }
  .rc-content {
    flex: 1;
    margin-left: 18rpx;
    .rcc-top {
      display: flex;
      justify-content: space-between;
      align-items: center;
      margin-bottom: 22rpx;
      .rcct-left {
        display: flex;
        align-items: center;
      }
      .rcc-label {
        margin-right: 14rpx;
        font-size: 24rpx;
        font-weight: 400;
        color: var(--color-000);
      }
    }
    .rcc-items {
      display: flex;
      align-items: center;
      .rcc-item + .rcc-item {
        margin-left: 26rpx;
      }
    }
    .rcc-item {
      display: flex;
      align-items: center;
      &.rcc-item2 {
        margin-top: 16rpx;
      }
      .rcc-label {
        flex-shrink: 0;
        line-height: 20rpx;
        font-size: 18rpx;
        font-weight: 400;
        color: var(--color-666);
        &.rcc-label2 {
          line-height: 32rpx;
          padding: 0 10rpx;
          background-color: var(--body-theme);
          color: var(--color-333);
        }
      }
      .uss-form-select,
      .uss-form-view {
        display: flex;
        align-items: center;
        width: 88rpx;
      }
      // 超出的长度限制
      :deep(.uni-select__selector) {
        width: 102rpx;
      }
      .uss-form-select_country {
        :deep(.uni-select__selector) {
          width: 204rpx;
        }
      }
      .uss-form-view {
        height: 32rpx !important;
        min-height: 32rpx !important;
        padding: 0 6rpx 0 12rpx;
        background-color: var(--body-theme);
        box-sizing: border-box;
      }
      .rcc-value {
        width: 90%;
        line-height: 18rpx;
        font-size: 18rpx;
        font-weight: 400;
        color: var(--color-333);
      }
    }
  }
  .rcct-right {
    margin-left: 10rpx;
    :deep(.nw-button) {
      width: 100rpx;
      height: 40rpx;
      margin: initial;
      border-radius: 4rpx;
      box-sizing: border-box;
      .u-button__text {
        line-height: 20rpx;
        font-size: 22rpx !important;
        font-weight: 400;
      }
      &:not(.u-button--disabled) .u-button__text {
        color: var(--color-fff);
      }
    }
  }
}

// zxz-uni-data-select多选择框-样式
.uss-form-select :deep(.uni-stat__select) {
  //
}

.recipe-step {
  padding: 0 20rpx 24rpx 26rpx;
  .rc-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16rpx 0;
    .rct-left {
      font-size: 26rpx;
      font-weight: 600;
      color: var(--color-333);
    }
    .rct-right {
      display: flex;
      align-items: center;
      .nw-button-wrap + .nw-button-wrap {
        margin-left: 12rpx;
      }
      :deep(.nw-button) {
        width: 108rpx;
        height: 34rpx;
        border-radius: 4rpx;
        background-color: transparent !important;
        border-color: var(--color-999);
        &.active {
          .u-button__text {
            color: var(--color-333) !important;
          }
          .u-icon__icon {
            color: var(--color-333) !important;
          }
        }
        .u-button__text {
          line-height: 18rpx;
          font-size: 18rpx !important;
          font-weight: 400;
          color: var(--color-999) !important;
        }
        .u-icon__icon {
          line-height: 18rpx !important;
          font-size: 18rpx !important;
          color: var(--color-999) !important;
        }
        &:not(.u-button--disabled) .u-button__text {
          color: var(--color-fff);
        }
      }
    }
  }
  .rc-items {
    .nw-radio-group {
      gap: 0 !important;
    }
    .item {
      width: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      height: 58rpx;
      margin-right: 4rpx;
      border-top: 1rpx solid var(--border-color);
      box-sizing: border-box;
      &:last-child {
        border-bottom: 1rpx solid var(--border-color);
      }
      :deep(.nw-radio) {
        position: relative;
        max-width: 289 * 2rpx;
        padding-left: 4rpx;
        box-sizing: border-box;
      }
      .label-radio {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        box-sizing: border-box;
      }
    }
    .item-left {
      flex: 1;
      display: flex;
      align-items: center;
      .index {
        flex-shrink: 0;
        width: 30rpx;
        margin-left: 16rpx;
        // line-height: 16rpx;
        font-size: 22rpx;
        font-weight: 400;
        color: var(--color-333);
      }
      .label {
        // line-height: 24rpx;
        font-size: 22rpx;
        font-weight: 400;
        color: var(--color-333);
        @extend .oneEllipsis;
      }
    }

    .item-right {
      flex-shrink: 0;
      margin-left: 10rpx;
      margin-right: -4rpx;
      :deep(.nw-button) {
        width: 78rpx;
        height: 34rpx;
        border-radius: 4rpx;
        background-color: transparent !important;
        .u-button__text {
          line-height: 18rpx;
          font-size: 18rpx !important;
          font-weight: 400;
          color: var(--main-theme) !important;
        }
        &:not(.u-button--disabled) .u-button__text {
          color: var(--color-fff);
        }
      }
    }
  }
  .rc-btns {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 42rpx 0 20rpx;
    :deep(.nw-button) {
      width: 286rpx;
      height: 54rpx;
      border-radius: 28rpx;
      .u-button__text {
        font-size: 22rpx !important;
        font-weight: 400;
      }
      &:not(.u-button--disabled) .u-button__text {
        color: var(--color-fff);
      }
    }
  }
}
